#!/usr/bin/env python3


import rclpy
from  .hardware_layer import *
from.ros_layer import *

def main(args=None):

    rclpy.init(args=args)
    hardware_bridge = HardwareBridge()
    try:
        rclpy.spin(hardware_bridge)
    except KeyboardInterrupt:
        hardware_bridge.get_logger().info('Shutting down hardware interface node (Ctrl+C)...')
    finally:
        hardware_bridge.destroy_node()
        if rclpy.ok():
            rclpy.shutdown()

if __name__ == '__main__':
    main()